package com.zhu.instructions.stack;

// instructions/stack/POP.java
import com.zhu.instructions.base.NoOperandsInstruction;
import com.zhu.rtda.Frame;

/**
 * 弹出栈顶单个变量
 * 适用于：int, float, reference 等占用一个 slot 的类型
 * 指令：pop
 */
public class POP extends NoOperandsInstruction {
    @Override
    public void execute(Frame frame) {
        frame.getOperandStack().popSlot();
    }
}
